package com.westos.reflect.work;

import java.sql.ResultSet;
import java.util.List;

import com.mchange.v2.c3p0.ComboPooledDataSource;
import com.westos.mysql.util.DBUtil;
import com.westos.reflect.bean.Student;

public class Test {
	
	public static void main(String[] args) {
		
		ComboPooledDataSource ds=DBUtil.getDS();
		
		ResultToListImpl rst=new ResultToListImpl();
		ResultSet rs=rst.getRS(ds);
		List<Object> list=rst.resultsettolist(rs,Student.class);
		System.out.println(list);
		System.out.println(list.size());
		ds.close();
	}
}
